package com.augmentum.login;

public class Constants {
    public static final String EMPTY_STRING = "";
    public static final String IDS = "ids";
    public static final String PAGE_SIEZ = "pageSize";
    public static final String OFFSET = "offset";
    public static final String CURRENTPAGE = "currentPage";
    public static final String ID = "id";
    public static final String REG_Digit = "[0-9]{1,9}";
    public static final String ORDER = "order";
    public static final String CONTENTPATH = "contentPath";
    public static final String STATIC_PATH = "static_url";
    public static final String USER_EMPTY = "User can't be empty";
    public static final String VALUE_EMPTY = "The value can't be empty!";
    public static final String USER_FORMAT = "Data format is not correct";
    public static final String USER_ERROR = "Users do not exist";
    public static final String PASSWORD_ERROR = "Password is not correct";
    public static final String PASSWORD_EMPTY = "Password cant't be empty";
    public static final String EXCEPTION = "exception";
    public static final String ENCODING = "UTF-8";
    
    public static final String SESSION = "session";

    public static final String LIST_QUESTION_JSP = "question/list";
    public static final String EDIT_QUESTION_JSP = "question/edit";
    public static final String CREATE_QUESTION_JSP = "question/create";
    public static final String PERSON_INFOR_JSP = "infor";
    
    public static final String APP_URL_PREFIX = "page";
    public static final String DESCRIPTION = "description";

    public static final String ROLE = "role";
    public static final String USER = "user";
    public static final String PASSWORD = "password";
    public static final String PERSON_INFOR = "personInfor";
    public static final String USER_LIST = "userList";
    public static final String LOGIN = "login";
    public static final String CHANGE_PASSWORD_PAGE = "page/password";
    public static final String USER_NAME = "userName";

    public static final String CREATE_PAGE = "question/createPage";
    public static final String EDIT_PAGE = "question/editPage";
    public static final String SEARCH_PAGE = "question/searchPage";
    public static final String QUESTION_LIST = "questionList";
    public static final String SEARCH_QUESTION_SERVLET = "question/search";
    public static final String EDIT_QUESTION_SERVLET = "question/edit";
    public static final String CREATE_QUESTION_SERVLET = "question/create";

    public static final String QUESTION_CREATE_PAGE = "createQuestionPage";
    public static final String QUESTION_EDIT_PAGE = "editQuestionPage";
    public static final String QUESTION = "question";

    public static final String SEARCH_EXAM_SERVLET = "exam/search";
    public static final String CREATE_EXAM_PAGE = "exam/create";
    public static final String EXAM_MSG = "examMsg";
    public static final String EXAM_SERVICE_MSG = "serviceMsg";
    
    public static final String USER_SEARCH_SERVLET = "uesr/search";

    public static final String LOGIN_SERVLET = "login";
    public static final String LOGIN_PAGE_SERVLET = "user/loginPage";
    public static final String LOGIN_PAGE = "login";
    public static final String EXIT = "exit";

    public static final String SUCCESS = "success";
    public static final String INPUT = "input";

    public static final String PAGE_COUNT = "pageCount";
    public static final String QUESTION_ID = "questionId";
    public static final String PAGE = "page";

    public static final String JDBC_URL = "jdbc.url";
    public static final String JDBC_USER = "jdbc.user";
    public static final String JDBC_PASSWORD = "jdbc.password";
    public static final String JDBC_DRIVER = "jdbc.driver";

    public static final String APP_CONTENT_REQEUST = "request";
    public static final String APP_CONTENT_RESPONSE = "response";

    public static final String OPTION_A_EXCEPTION = "aException";
    public static final String OPTION_B_EXCEPTION = "bException";
    public static final String OPTION_C_EXCEPTION = "cException";
    public static final String OPTION_D_EXCEPTION = "dException";
    public static final String ANSWER_EXCEPTION = "answerException";
    public static final String QUESTION_ID_EXCEPTION = "idException";
    public static final String DESCRIPTION_EXCEPTION = "descException";

    public static final String WRONG = "data format is wrong";
    public static final String NONE_EXIST = "the number already exist";
    public static final String QUESTION_PARAM_MSG = "questionParamException";
    public static final String QUESTION_SERVICE_MSG = "questionServiceException";
    public static final String JDBC_CONNECTION = "connection";

    public static final String REQUEST = "request";
    public static final String RESPONSE = "response";

    public static final String NUMBER_EXIST = "The number is already exist!";

    // Exam data format
    public static final String EXAM = "exam";
    public static final String EXAM_NAME = "examName";
    public static final String EXAM_DESCRIPTION = "description";
    public static final String QUESITON_COUNT = "questionCount";
    public static final String QUESTION_SCROE = "questionScore";
    public static final String TOTAL_SCROE = "totalScore";
    public static final String DURATION = "duration";
    public static final String BEGIN_TIEM = "beginTime";
    public static final String PASS_CRITERIA = "criteria";
    public static final String EXAM_STATE = "state";
    public static final String EXAM_ID = "examId";
    public static final String EXAM_LIST = "examList";
    public static final String EXAM_LIST_JSP = "exam/list";
    public static final String DRAFT_LIST_JSP = "exam/dlist";
    public static final String CREATE_EXAM_JSP = "exam/create";
    public static final String EXAM_EDIT_JSP = "exam/edit";

    public static final String NONE_EMPTY_STRING = "The value can't be empty!";
    public static final String QUESTION_COUNT_EXCEPTION = "There is no enough question!";
}
